package dao;

import ucm.User;

/**
 *
 * @author Adam Scarr
 * @since r1
 */
public abstract class Authenticator {
    private static Authenticator instance = null;
    protected User user = null;

    protected Authenticator() {

    }

    public User getAuthenticatedUser() {
        return user;
    }

    public static void setInstance(Authenticator instance) {
        Authenticator.instance = instance;
    }

    public static Authenticator getInstance() {
        return instance;
    }

    public abstract User authenticateUser(String username, String Password);
}
